package vn.vfriends.soffice.bean;

import java.io.Serializable;
import javax.enterprise.context.RequestScoped;
import javax.inject.Named;
import org.primefaces.model.DashboardColumn;
import org.primefaces.model.DashboardModel;
import org.primefaces.model.DefaultDashboardColumn;
import org.primefaces.model.DefaultDashboardModel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 * @author tuan@vfriends.vn
 */

@Named
@RequestScoped
public class DashboardBean implements Serializable {
    private static final Logger logger = LoggerFactory.getLogger(DashboardBean.class);
    
    private DashboardModel model;

    public DashboardBean() {
        model = new DefaultDashboardModel();  
        DashboardColumn column1 = new DefaultDashboardColumn();  
        DashboardColumn column2 = new DefaultDashboardColumn();  
          
        column1.addWidget("news");  
        column1.addWidget("companySchedule");  
          
        column2.addWidget("personalSchedule");  
        column2.addWidget("working");
  
        model.addColumn(column1);  
        model.addColumn(column2);
    }
    
    public DashboardModel getModel() {
        return model;
    }
}
